import request from '@/utils/request'

// 查询院前急救人员出诊记录列表 (分页)
export function selectPageNurseVisitRecord(query) {
    return request({
        url: '/business/nurseVisitRecord/selectPage',
        method: 'get',
        params: query
    })
}

// 查询院前急救人员出诊记录列表 (不分页)
export function listNurseVisitRecord(query) {
    return request({
        url: '/business/nurseVisitRecord/list',
        method: 'get',
        params: query
    })
}

// 查询院前急救人员出诊记录详细
export function getNurseVisitRecord(recordId) {
    return request({
        url: '/business/nurseVisitRecord/' + recordId,
        method: 'get'
    })
}

// 新增院前急救人员出诊记录
export function addNurseVisitRecord(data) {
    return request({
        url: '/business/nurseVisitRecord',
        method: 'post',
        data: data
    })
}

// 修改院前急救人员出诊记录
export function updateNurseVisitRecord(data) {
    return request({
        url: '/business/nurseVisitRecord',
        method: 'put',
        data: data
    })
}

// 删除院前急救人员出诊记录
export function delNurseVisitRecord(recordId) {
    return request({
        url: '/business/nurseVisitRecord/' + recordId,
        method: 'delete'
    })
}
